const {emailTransporter,emailOtherName} = require('./../../kum.config')
const from = emailOtherName+"<"+emailTransporter.auth.user+">";
module.exports = {
  IP_PLACE_DIFF(to,type,last,now) {
    return {
      from,
      to,
      subject:"登录异常",
      html: `<!DOCTYPE html>
  <html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body style="text-align: center;">
  <div>
    <img src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-5735cfba-a37e-4d2b-a79c-2e9e3fbaa82e/48c9d3a0-27ca-4802-b86f-65d925a8b268.png" />
    <div style="border: 1px solid black;width: 200px;height: 150px;margin: 20px auto;">
      <h3>${type}</h3>
      <p>上次：${last}</p>
      <p>本次：${now}</p>
    </div>
  </div>
  </body>
</html>
`
    }


  }
}
